<?php get_header(); ?>

		   <div id="subc">
		
  <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
	
			<h1><?php edit_post_link('Edit','<span class="edit">','</span>'); ?><span class="id"><?php echo zeroise($post->ID, 3); ?></span><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
			<h2>posted by <?php the_author_posts_link(); ?> on <?php the_time('F jS, Y') ?></h2>
				
			<?php the_content(); ?>	
	
			<div class="post-info">
			This entry was posted on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?> and is categorized in <?php the_category(', ') ?>. You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed. 
			<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
			// Both Comments and Pings are open ?>
			You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(true); ?>" rel="trackback">trackback</a> from your own site.	
			<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
			// Only Pings are Open ?>
			Responses are currently closed, but you can <a href="<?php trackback_url(true); ?> " rel="trackback">trackback</a> from your own site.						
			<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
			// Comments are open, Pings are not ?>
			You can skip to the end and leave a response. Pinging is currently not allowed.
			<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
			// Neither Comments, nor Pings are open ?>
			Both comments and pings are currently closed.			
			<?php } edit_post_link('Edit this entry','','.'); ?>
			</div>

	<p>&nbsp;</p>

	<?php comments_template(); ?>
	
	<?php endwhile; else: ?>
	
		<p>Sorry, no posts matched your criteria.</p>
	
<?php endif; ?>

		   </div>

</div>
	
<?php get_sidebar(); ?>

<?php get_footer(); ?>